/** 
 * Copyright 2010 Erlacher Felix, Estgfaeller Wolfgang, Ferula Patrick
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package at.socialconference.inter.constants;

import java.util.TreeMap;

/**
 * Provides a list of countries mapped to a specific integer value based on
 * information of the database of the SocialConference project.
 * 
 */
public class Countries {

	private static TreeMap<Integer, String> countries = null;

	static {
		if (countries == null || countries.isEmpty() == true) {
			countries = new TreeMap<Integer, String>();
			countries.put(1, "Austria");
			countries.put(2, "Germany");
			countries.put(3, "Albania");
			countries.put(4, "Algeria");
			countries.put(5, "American Samoa");
			countries.put(6, "Andorra");
			countries.put(7, "Angola");
			countries.put(8, "Anguilla");
			countries.put(9, "Antarctica");
			countries.put(10, "Antigua and Barbuda");
			countries.put(11, "Argentina");
			countries.put(12, "Armenia");
			countries.put(13, "Aruba");
			countries.put(14, "Australia");
			countries.put(16, "Azerbaijan");
			countries.put(17, "Bahamas");
			countries.put(18, "Bahrain");
			countries.put(19, "Bangladesh");
			countries.put(20, "Barbados");
			countries.put(21, "Belarus");
			countries.put(22, "Belgium");
			countries.put(23, "Belize");
			countries.put(24, "Benin");
			countries.put(25, "Bermuda");
			countries.put(26, "Bhutan");
			countries.put(27, "Bolivia");
			countries.put(28, "Bosnia and Herzegovina");
			countries.put(29, "Botswana");
			countries.put(30, "Bouvet Island");
			countries.put(31, "Brazil");
			countries.put(32, "British Indian Ocean territory");
			countries.put(33, "Brunei Darussalam");
			countries.put(34, "Bulgaria");
			countries.put(35, "Burkina Faso");
			countries.put(36, "Burundi");
			countries.put(37, "Cambodia");
			countries.put(38, "Cameroon");
			countries.put(39, "Canada");
			countries.put(40, "Cape Verde");
			countries.put(41, "Cayman Islands");
			countries.put(42, "Central African Republic");
			countries.put(43, "Chad");
			countries.put(44, "Chile");
			countries.put(45, "China");
			countries.put(46, "Christmas Island");
			countries.put(47, "Cocos (Keeling) Islands");
			countries.put(48, "Colombia");
			countries.put(49, "Comoros");
			countries.put(50, "Congo");
			countries.put(51, "Congo");
			countries.put(52, " Democratic Republic");
			countries.put(53, "Cook Islands");
			countries.put(54, "Costa Rica");
			countries.put(55, "Côte d'Ivoire (Ivory Coast)");
			countries.put(56, "Croatia (Hrvatska)");
			countries.put(57, "Cuba");
			countries.put(58, "Cyprus");
			countries.put(59, "Czech Republic");
			countries.put(60, "Denmark");
			countries.put(61, "Djibouti");
			countries.put(62, "Dominica");
			countries.put(63, "Dominican Republic");
			countries.put(64, "East Timor");
			countries.put(65, "Ecuador");
			countries.put(66, "Egypt");
			countries.put(67, "El Salvador");
			countries.put(68, "Equatorial Guinea");
			countries.put(69, "Eritrea");
			countries.put(70, "Estonia");
			countries.put(71, "Ethiopia");
			countries.put(72, "Falkland Islands");
			countries.put(73, "Faroe Islands");
			countries.put(74, "Fiji");
			countries.put(75, "Finland");
			countries.put(76, "France");
			countries.put(77, "French Guiana");
			countries.put(78, "French Polynesia");
			countries.put(79, "French Southern Territories");
			countries.put(80, "Gabon");
			countries.put(81, "Gambia");
			countries.put(82, "Georgia");
			countries.put(83, "Fantasyland");
			countries.put(84, "Ghana");
			countries.put(85, "Gibraltar");
			countries.put(86, "Greece");
			countries.put(87, "Greenland");
			countries.put(88, "Grenada");
			countries.put(89, "Guadeloupe");
			countries.put(90, "Guam");
			countries.put(91, "Guatemala");
			countries.put(92, "Guinea");
			countries.put(93, "Guinea-Bissau");
			countries.put(94, "Guyana");
			countries.put(95, "Haiti");
			countries.put(96, "Heard and McDonald Islands");
			countries.put(97, "Honduras");
			countries.put(98, "Hong Kong");
			countries.put(99, "Hungary");
			countries.put(100, "Iceland");
			countries.put(101, "India");
			countries.put(102, "Indonesia");
			countries.put(103, "Iran");
			countries.put(104, "Iraq");
			countries.put(105, "Ireland");
			countries.put(106, "Israel");
			countries.put(107, "Italy");
			countries.put(108, "Jamaica");
			countries.put(109, "Japan");
			countries.put(110, "Jordan");
			countries.put(111, "Kazakhstan");
			countries.put(112, "Kenya");
			countries.put(113, "Kiribati");
			countries.put(114, "Korea (north)");
			countries.put(115, "Korea (south)");
			countries.put(116, "Kuwait");
			countries.put(117, "Kyrgyzstan");
			countries.put(118, "Lao People's Democratic Republic");
			countries.put(119, "Latvia");
			countries.put(120, "Lebanon");
			countries.put(121, "Lesotho");
			countries.put(122, "Liberia");
			countries.put(123, "Libyan Arab Jamahiriya");
			countries.put(124, "Liechtenstein");
			countries.put(125, "Lithuania");
			countries.put(126, "Luxembourg");
			countries.put(127, "Macao");
			countries.put(128, "Macedonia");
			countries.put(129, "Madagascar");
			countries.put(130, "Malawi");
			countries.put(131, "Malaysia");
			countries.put(132, "Maldives");
			countries.put(133, "Mali");
			countries.put(134, "Malta");
			countries.put(135, "Marshall Islands");
			countries.put(136, "Martinique");
			countries.put(137, "Mauritania");
			countries.put(138, "Mauritius");
			countries.put(139, "Mayotte");
			countries.put(140, "Mexico");
			countries.put(141, "Micronesia");
			countries.put(142, "Moldova");
			countries.put(143, "Monaco");
			countries.put(144, "Mongolia");
			countries.put(145, "Montserrat");
			countries.put(146, "Morocco");
			countries.put(147, "Mozambique");
			countries.put(148, "Myanmar");
			countries.put(149, "Namibia");
			countries.put(150, "Nauru");
			countries.put(151, "Nepal");
			countries.put(152, "Netherlands");
			countries.put(153, "Netherlands Antilles");
			countries.put(154, "New Caledonia");
			countries.put(155, "New Zealand");
			countries.put(156, "Nicaragua");
			countries.put(157, "Niger");
			countries.put(158, "Nigeria");
			countries.put(159, "Niue");
			countries.put(160, "Norfolk Island");
			countries.put(161, "Northern Mariana Islands");
			countries.put(162, "Norway");
			countries.put(163, "Oman");
			countries.put(164, "Pakistan");
			countries.put(165, "Palau");
			countries.put(166, "Palestinian Territories");
			countries.put(167, "Panama");
			countries.put(168, "Papua New Guinea");
			countries.put(169, "Paraguay");
			countries.put(170, "Peru");
			countries.put(171, "Philippines");
			countries.put(172, "Pitcairn");
			countries.put(173, "Poland");
			countries.put(174, "Portugal");
			countries.put(175, "Puerto Rico");
			countries.put(176, "Qatar");
			countries.put(177, "Réunion");
			countries.put(178, "Romania");
			countries.put(179, "Russian Federation");
			countries.put(180, "Rwanda");
			countries.put(181, "Saint Helena");
			countries.put(182, "Saint Kitts and Nevis");
			countries.put(183, "Saint Lucia");
			countries.put(184, "Saint Pierre and Miquelon");
			countries.put(185, "Saint Vincent and the Grenadines");
			countries.put(186, "Samoa");
			countries.put(187, "San Marino");
			countries.put(188, "Sao Tome and Principe");
			countries.put(189, "Saudi Arabia");
			countries.put(190, "Senegal");
			countries.put(191, "Serbia and Montenegro");
			countries.put(192, "Seychelles");
			countries.put(193, "Sierra Leone");
			countries.put(194, "Singapore");
			countries.put(195, "Slovakia");
			countries.put(196, "Slovenia");
			countries.put(197, "Solomon Islands");
			countries.put(198, "Somalia");
			countries.put(199, "South Africa");
			countries.put(200, "South Georgia and the South Sandwich Islands");
			countries.put(201, "Spain");
			countries.put(202, "Sri Lanka");
			countries.put(203, "Sudan");
			countries.put(204, "Suriname");
			countries.put(205, "Svalbard and Jan Mayen Islands");
			countries.put(206, "Swaziland");
			countries.put(207, "Sweden");
			countries.put(208, "Switzerland");
			countries.put(209, "Syria");
			countries.put(210, "Taiwan");
			countries.put(211, "Tajikistan");
			countries.put(212, "Tanzania");
			countries.put(213, "Thailand");
			countries.put(214, "Togo");
			countries.put(215, "Tokelau");
			countries.put(216, "Tonga");
			countries.put(217, "Trinidad and Tobago");
			countries.put(218, "Tunisia");
			countries.put(219, "Turkey");
			countries.put(220, "Turkmenistan");
			countries.put(221, "Turks and Caicos Islands");
			countries.put(222, "Tuvalu");
			countries.put(223, "Uganda");
			countries.put(224, "Ukraine");
			countries.put(225, "United Arab Emirates");
			countries.put(226, "United Kingdom");
			countries.put(227, "United States of America");
			countries.put(228, "Uruguay");
			countries.put(229, "Uzbekistan");
			countries.put(230, "Vanuatu");
			countries.put(231, "Vatican City");
			countries.put(232, "Venezuela");
			countries.put(233, "Vietnam");
			countries.put(234, "Virgin Islands (British)");
			countries.put(235, "Virgin Islands (US)");
			countries.put(236, "Wallis and Futuna Islands");
			countries.put(237, "Western Sahara");
			countries.put(238, "Yemen");
			countries.put(239, "Zaire");
			countries.put(240, "Zambia");
			countries.put(241, "Zimbabwe");
		}
	}

	/**
	 * Returns the list of countries mapped their with integer code
	 * 
	 * @return
	 */
	public static TreeMap<Integer, String> getCountries() {
		return countries;
	}
}
